*{
  padding: 0;
  margin: 0;
}
html,body{
    height: 100%;
    width: 100%;
}

body{
    font-size: 0.3rem;
}
.nav{
    height: 1rem;
    background: #38f;
    position: relative;
    z-index: 1;
    h1{
        width: 100%;
        text-align: center;
        line-height: 1rem;
        font-size: 0.4rem;
        color: #fff;
    }
    .user{
        position: absolute;
        right: .10rem;
        top: 0;
        line-height: 1rem;
    }
    .signout{
        cursor: pointer;
        &:hover{
            color: red;
        }
    }
}



div.content{
  
  width: 100%;
  position: absolute;
  top: 1rem;
  bottom: 0;

  div.box{
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 2rem;
    background: #f5f6f7;
    overflow: auto;
    div.mess{
      overflow: hidden;
      padding: 10px 0;
      div.icon{
        float: left;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        background: #3296fa;
        color: #fff;
        font-size: 14px;
        text-align: center;
        line-height: 40px;
      }
      div.info{
        float: left;
        width: 70%;
        span.name{
          padding: 0 30px 0 10px;
          color: #7a7d82;
          font-size: 14px;
        }
        span.time{
          color: #bbb;
          font-size: 12px;
        }
        div.mess-c{
          display: inline-block;
          margin-top: 4px;
          margin-left: 10px;
          padding: 6px;
          font-size: 14px;
          border: 1px solid #ededee;
          color: #191f25;
          background: #fff;
          border-radius: 4px;
          img{
            max-width: 100%;
          }
        }
      }
    }

    div.self{
      div.icon{
        float: right;

      }
      div.info{
        float: right;
        text-align: right;
        p{

          span.name{
            padding: 0 10px 0 30px;
            color: #7a7d82;
          }
        }
        div.mess-c{
          text-align: left;
          margin-right: 10px;
          background: #cce6ff;
          border-color: #bed6ee;
        }
      }
    }

  }
  div.edit{
      height: 2rem;
      width: 100%;
      position: absolute;
      bottom: 0;
      left: 0;
      overflow: hidden;
    p.sendimg{
        position: relative;
        height: 0.4rem;
        line-height: 0.4rem;
        width: 1.6rem;
        background: #649efd;
        color: #fff;
        text-align: center;
    }  
    p.sendimg input{
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        opacity: 0;
        background: rgba(255,255,255,0);
    }
    textarea{
      resize: none;
      width: 100%;
      height: 1rem;
      box-sizing: border-box;
      display: block;
    }
    div.btn-wrap{
      span.btn{
        display: block;
        width: 100%;
        height: 0.6rem;
        background: #38f;
        color: #fff;
        text-align: center;
        line-height: 0.6rem;
        cursor: pointer;
      }
    }

  }
}
